<form name="userSignIn" novalidate>
  <div class="form-group" >
    <label for="inputName">用户名</label>
    <input type="text" class="form-control" id="inputName"  ng-model="inputName" placeholder="用户名" required>
  </div>
  <div class="form-group">
    <label for="inputPassword">密码</label>
    <input type="password" class="form-control" id="inputPassword" ng-model="inputPassword" placeholder="密码" required>
  </div>

  <button type="submit" class="btn btn-primary btn-block btn-lg"  ng-click="login()" ng-disabled="userSignIn.$invalid">登录</button>
  <p class="h4 text-right">
    <a ng-href="/#/signup">没有帐号？去一个注册</a>
  </p>
</form>
 <button class="button button-fill open-panel panel-left">打开左侧栏</button>
